﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;
namespace BUS
{
    public class KhachHangBUS
    {
        KhachHangDAO khdao = new KhachHangDAO();
        public DataTable LayDSKhachHang()
        {
            return khdao.LayDSKhachHang();
        }
        public bool ThemKhachHang(KhachHangDTO khdto)
        {
            return khdao.ThemKhachHang(khdto);
        }
        public bool XoaKhachHang(int makhachhang)
        {
            return khdao.XoaKhachHang(makhachhang);
        }
        public bool CapNhatKhachHang(KhachHangDTO khdto)
        {
            return khdao.CapNhatKhachHang(khdto);
        }
        public bool KiemTraKhachHang(int makhachhang)
        {
            return khdao.KiemTraKhachHang(makhachhang);
        }
        public DataTable TimKiemKhachHang(string tenkhachhang)
        {
            return khdao.TimKiemKhachHang(tenkhachhang);
        }
        public KhachHangDTO LayMotKhachHang(int makhachhang)
        {
            return khdao.LayMotKhachHang(makhachhang);
        }
        public DataTable LayKHThanhToanHoaDon()
        {
            return khdao.LayKHThanhToanHoaDon();
        }
    }
}
